package com.tyjf.ibmconnector.core.config;

import org.springframework.core.env.MapPropertySource;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DynamicLoadPropertySource extends MapPropertySource {

    private static Map<String, Object> map = new ConcurrentHashMap<String, Object>(64);
    static {
        map.put("destination_q", BaseJmsConfig.localqName);
    }

    public DynamicLoadPropertySource(String name, Map<String, Object> source) {
        super(name, map);
    }

    @Override
    public Object getProperty(String name) {
        return map.get(name);
    }
}
